package com.yj.spring.charpter04;

import com.yj.spring.common.ArgumentValue;
import com.yj.spring.common.PropertyValue;
import lombok.Data;

import java.util.List;

@Data
public class BeanDefinition {

    private String id;

    private String className;

    private String scope;

    private boolean lazyInit;

    private List<ArgumentValue> argumentValues;

    private List<PropertyValue> propertyValues;

    private String[] dependsOn;

    // 初始化方法
    private String initMethod;
    // 销毁方法
    private String destroyMethod;

    public BeanDefinition(String id, String className){
        this.id = id;
        this.className = className;
    }
}
